<?php
/**
 * Created by PhpStorm.
 * User: Duyonggao
 * Date: 2017/9/7 0007
 * Time: 下午 2:58
 */
$this->title = "搜索排行榜";
?>

<div class="row">
    <div class="col-md-3">
        <table class="table table-striped table-bordered">
            <tbody>
            <tr>
                <th>排名</th>
                <th>关键词</th>
                <th>搜索量</th>
            </tr>
            <?php for ($i = 0; $i < 25; $i++) { ?>
                <tr>
                    <td><?= $list[$i]['rank'] ?></td>
                    <td>
                        <a href="<?= \yii\helpers\Url::to(['search/list', 'key_word' => $list[$i]['word']],true) ?>"
                           ><?= $list[$i]['word'] ?></a>
                    </td>
                    <td><?= $list[$i]['total'] ?></td>
                </tr>
            <?php } ?>
        </table>
    </div>

    <div class="col-md-3">
        <table class="table table-striped table-bordered">
            <tbody>
            <tr>
                <th>排名</th>
                <th>关键词</th>
                <th>搜索量</th>
            </tr>
            <?php for ($i = 25; $i < 50; $i++) { ?>
                <tr>
                    <td><?= $list[$i]['rank'] ?></td>
                    <td>
                        <a href="<?= \yii\helpers\Url::to(['search/list', 'key_word' => $list[$i]['word']],true) ?>"
                           ><?= $list[$i]['word'] ?></a>
                    </td>
                    <td><?= $list[$i]['total'] ?></td>
                </tr>
            <?php } ?>
        </table>
    </div>

    <div class="col-md-3">
        <table class="table table-striped table-bordered">
            <tbody>
            <tr>
                <th>排名</th>
                <th>关键词</th>
                <th>搜索量</th>
            </tr>
            <?php for ($i = 50; $i < 75; $i++) { ?>
                <tr>
                    <td><?= $list[$i]['rank'] ?></td>
                    <td>
                        <a href="<?= \yii\helpers\Url::to(['search/list', 'key_word' => $list[$i]['word']],true) ?>"
                           ><?= $list[$i]['word'] ?></a>
                    </td>
                    <td><?= $list[$i]['total'] ?></td>
                </tr>
            <?php } ?>
        </table>
    </div>

    <div class="col-md-3">
        <table class="table table-striped table-bordered">
            <tbody>
            <tr>
                <th>排名</th>
                <th>关键词</th>
                <th>搜索量</th>
            </tr>
            <?php for ($i = 75; $i < 100; $i++) { ?>
                <tr>
                    <td><?= $list[$i]['rank'] ?></td>
                    <td>
                        <a href="<?= \yii\helpers\Url::to(['search/list', 'key_word' => $list[$i]['word']],true) ?>"
                           ><?= $list[$i]['word'] ?></a>
                    </td>
                    <td><?= $list[$i]['total'] ?></td>
                </tr>
            <?php } ?>
        </table>
    </div>
</div>